package mest.dao.cxj;

import mest.VO.cxj.FinancialCostOrderRecordVO;
import mest.VO.cxj.PlanCostOrderRecordVO;
import mest.entity.FinancialCostOrderRecord;
import mest.entity.PlanCostOrderRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FinancialCostOrderRecordDao {

    /**
     * 添加费用单记录
     *
     * @param fcor
     * @param theirDb
     * @return
     */
    Integer insertFinancialCostOrderRecord(@Param("fcor") FinancialCostOrderRecord fcor, @Param("theirDb") String theirDb);


    /**
     * 根据ID查询所有费用单记录
     *
     * @return
     */
    List<FinancialCostOrderRecordVO> selectAllFinancialCostOrderRecordById(@Param("page") Integer page, @Param("limit") Integer limit,
                                                                     @Param("fcId") Integer fcId, @Param("theirDb") String theirDb);

    /**
     * 根据ID查询所有费用单数量
     *
     * @return
     */
    Integer selectCountFinancialCostOrderRecordById(@Param("fcId") Integer fcId, @Param("theirDb") String theirDb);

}